package com.qmscy.sparrow.repository;

import com.qmscy.sparrow.domain.GlobalConfig;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * 全局配置 Dao
 *
 * @Author: wangxiaonan
 * @Date: 2019/1/6
 **/
public interface GlobalConfigDao extends Repository<GlobalConfig, String> {

    GlobalConfig findByKey(String key);

    List<GlobalConfig> findAllByKeyStartingWith(String prefixStr);
}
